picture: Fix hi-dpi image handling
authorMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jan 2023 12:59:27 +0000 (07:59 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 16 Jan 2023 13:48:37 +0000 (08:48 -0500)
commitcd79159420ecd3874c155ee54c0bcb54aaf52913
tree7889105227e70fd1a21d9760e41f1673ff37a4df
parent071c6c60c0784674bc52daf48fb0a94c19d28754
picture: Fix hi-dpi image handling

The idea behind this code was to let scalable
images (i.e. mainly SVGs) provide twice as much
detail when the scale is 2. But we were also
using a scaler for pngs, causing them to be too
small on a hidpi screen. Fix that.

Note that there are cases where you want scaling
for pngs (when you display them scaled down, so
the image has 'hidden' detail). But we are not
attempting to handle that situation automatically.
gtk/gdkpixbufutils.c